﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace FacialClub.Models.Entities
{
    /// <summary>
    /// CustomerType
    /// </summary>
    [Bind(Include = "CustomerType,IsActive,UserCreated,CreatedDate,UserModified,ModifiedDate")]
    [MetadataType(typeof(CustomerTypeMetaData))]
    public partial class CustomerType
    {
        /// <summary>
        /// Customer Type Meta Data for Validation
        /// </summary>
        [Bind(Exclude = "CustomerTypeId")]
        public class CustomerTypeMetaData
        {
            /// <summary>
            /// CustomerTypeId
            /// </summary>
            [ScaffoldColumn(false)]
            public object CustomerTypeId { get; set; }

            /// <summary>
            /// Customer Type
            /// </summary>
            [Required(ErrorMessage = "Customer Type is required")]
            [StringLength(160)]
            [DisplayName("Customer Type")]
            public string CustomerTypeName { get; set; }

            /// <summary>
            /// Status of the News Event
            /// </summary>
            public bool IsActive { get; set; }

            /// <summary>
            /// User Created
            /// </summary>
            public DateTime UserCreated { get; set; }

            /// <summary>
            /// Creation Date
            /// </summary>
            public DateTime CreatedDate { get; set; }

            /// <summary>
            /// User Modified
            /// </summary>
            public DateTime UserModified { get; set; }

            /// <summary>
            /// Modified Date
            /// </summary>
            public DateTime ModifiedDate { get; set; }
        }
    }
}